package com.hyt.it.ogt.pj.model.dto.paper;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 试卷数据VO类
 *
 * @author huangyh
 * @since 2020-06-03
 */
@Data
public class PaperPackageDataDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty(value = "试卷标识号，前端新建试卷时无需传值，编辑试卷时需要将被编辑试卷的试卷标识号回传给后端")
    private Integer packageVersion;

    @ApiModelProperty(value = "机构id，前端新建试卷时无需传值")
    private String officeId;

    @NotBlank(message = "试卷名称不能为空")
    @ApiModelProperty(value = "试卷名称")
    private String name;

    @ApiModelProperty(value = "最大作答时长")
    private String totalAnswerTime;

    @ApiModelProperty(value = "允许提前交卷时间")
    private String totalHandInTime;

    @ApiModelProperty(value = "试卷总分")
    private BigDecimal totalScore;

    @ApiModelProperty(value = "大题数据列表")
    private List<PaperDataDTO> paperDataVOList;
}
